//
//  SecondView.m
//  PASystem
//
//  Created by 刘沿 on 16/8/10.
//  Copyright © 2016年 czd. All rights reserved.
//

#import "SecondView.h"

@implementation SecondView

+(instancetype)WithSecondView{

    return [[[NSBundle mainBundle] loadNibNamed:@"SecondView" owner:nil options:nil] lastObject];

}

- (void)setModel:(ProviceDetailModel *)model{

    _model = model;
    
    self.EMPLOYEESNUM.text = model.EMPLOYEESNUM;
    self.NATURE.text = model.NATURE;
    
    self.SHAPE.text = model.SHAPE;
    
    if (model.REGCAPITAL.length != 0) {
        
        self.REGCAPITAL.text = [NSString stringWithFormat:@"%@(万元)",model.REGCAPITAL];
    }else {
       
      self.REGCAPITAL.text = @"";
    }
   
    if (model.PRODUCTION.length != 0) {
        
        self.PRODUCTION.text = [NSString stringWithFormat:@"%@(万元)",model.PRODUCTION];
    }else{
      self.PRODUCTION.text = @"";
    
    }
    
    if (model.ANNUALSALES.length != 0) {
        self.ANNUALSALES.text =[NSString stringWithFormat:@"%@(万元)",model.ANNUALSALES];
    }else{
       
    self.ANNUALSALES.text = @"";
    }
    
    
    if (model.TOTALIMPORTEXPORTVOLUME.length != 0) {
         self.TOTALIMPORTEXPORTVOLUME.text =[NSString stringWithFormat:@"%@(万元)",model.TOTALIMPORTEXPORTVOLUME];
    }else{
    
       self.TOTALIMPORTEXPORTVOLUME.text = @"";
    }
    
   

}




@end
